package ru.pb.game.objects.model.chat;

/**
 * @author DarkSkeleton
 */
public class Chat
{
	public static final int NET_MAX_LEN = 255;
	private String _text;
	private int _string_len;
	private CHATTING_TYPE _chat_type;

	public Chat(int type, int string_len, String text)
	{
		_chat_type = CHATTING_TYPE.valueOf(type);
		_string_len = string_len;
		_text = text;
	}

	public CHATTING_TYPE getChatType()
	{
		return _chat_type;
	}

	public int getChatTypeId()
	{
		return _chat_type.getId();
	}

	public String getText()
	{
		return _text;
	}

	public int getTextSize()
	{
		return _string_len;
	}
}